package org.itboys.core.dto.tray;

import lombok.Data;
import org.itboys.core.dto.common.BaseDto;

/**
 * 作者：zzq
 * 时间：2018/12/5
 * 描述：托盘
 */
@Data
public class SundayTrayDto extends BaseDto {
    private Long modelId;//模板id
    private String modelName;//模板名称
    private Long ownerId;//持有供应商id
    private String ownerName;//持有供应商
    private Long serviceId;//服务供应商id
    private String serviceName;//持有供应商
    private Long storeId;//仓库ID
    private String storeName;//仓库名称
    private Long applyId;//申请id
    private String ewm;//二维码路径
    private Integer status;//1,正常 2，已损坏

    public String getStatusStr() {
        String statusStr="";
        if(status==null)return statusStr;

        switch (status) {
            case 0:
                statusStr="待分配";
                break;
            case 1:
                statusStr="待租赁";
                break;
            case 2:
                statusStr="租赁中";
                break;
            case 3:
                statusStr="已下架";
                break;
            case 4:
                statusStr="已损坏";
                break;
            case 5:
                statusStr="已买断";
                break;
            default:
                break;
        }
        return statusStr;
    }
}
